package cn.wolfcode.shop.redis;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class BaseKeyPrefix implements Keyprefix{

    private String prefix;
    private int expireSeconds;

    public String getPrefix() {

        return this.getClass().getSimpleName() + ":" + prefix;
    }

    public int getEXpireSeconds() {

        return this.expireSeconds;
    }
}
